<!-- HTML header for doxygen 1.8.5-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<title>GenAVB/TSN: Clock</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="http://www.freescale.com/files/abstract/misc/COLLATERALTEMPLATE_infocenter.js" type="text/javascript" xml:space="preserve"><!-- --></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="html_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">GenAVB/TSN
   </div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__clock.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Clock<div class="ingroups"><a class="el" href="group__library.html">Library API</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga5ef1c8a12d6be59e079dc5664e2bcd86"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__clock.html#ga5ef1c8a12d6be59e079dc5664e2bcd86">genavb_clock_id_t</a> { <br />
&#160;&#160;<a class="el" href="group__clock.html#gga5ef1c8a12d6be59e079dc5664e2bcd86a861cb8307fa966e8edad0f89579e456f">GENAVB_CLOCK_MONOTONIC</a>, 
<br />
&#160;&#160;<a class="el" href="group__clock.html#gga5ef1c8a12d6be59e079dc5664e2bcd86a56007b4860437874fb00e8b03533b631">GENAVB_CLOCK_GPTP_0_0</a>, 
<br />
&#160;&#160;<a class="el" href="group__clock.html#gga5ef1c8a12d6be59e079dc5664e2bcd86a5658dd6f6973ed509a4cdb9826231bfc">GENAVB_CLOCK_GPTP_0_1</a>, 
<br />
&#160;&#160;<a class="el" href="group__clock.html#gga5ef1c8a12d6be59e079dc5664e2bcd86ac891243f282b5a7ec56719c33bced52d">GENAVB_CLOCK_GPTP_1_0</a>, 
<br />
&#160;&#160;<a class="el" href="group__clock.html#gga5ef1c8a12d6be59e079dc5664e2bcd86ab52086d512262f3be660841c7c78407a">GENAVB_CLOCK_GPTP_1_1</a>, 
<br />
&#160;&#160;<b>GENAVB_CLOCK_MAX</b>
<br />
 }</td></tr>
<tr class="separator:ga5ef1c8a12d6be59e079dc5664e2bcd86"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gae08eea93114ad20b491fc1a387e50e35"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__clock.html#gae08eea93114ad20b491fc1a387e50e35">genavb_clock_gettime64</a> (<a class="el" href="group__clock.html#ga5ef1c8a12d6be59e079dc5664e2bcd86">genavb_clock_id_t</a> id, uint64_t *ns)</td></tr>
<tr class="separator:gae08eea93114ad20b491fc1a387e50e35"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga5ef1c8a12d6be59e079dc5664e2bcd86"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5ef1c8a12d6be59e079dc5664e2bcd86">&#9670;&nbsp;</a></span>genavb_clock_id_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__clock.html#ga5ef1c8a12d6be59e079dc5664e2bcd86">genavb_clock_id_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>GenAVB clock type. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga5ef1c8a12d6be59e079dc5664e2bcd86a861cb8307fa966e8edad0f89579e456f"></a>GENAVB_CLOCK_MONOTONIC&#160;</td><td class="fielddoc"><p>Monotonic system clock. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5ef1c8a12d6be59e079dc5664e2bcd86a56007b4860437874fb00e8b03533b631"></a>GENAVB_CLOCK_GPTP_0_0&#160;</td><td class="fielddoc"><p>gPTP clock interface 0 domain 0 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5ef1c8a12d6be59e079dc5664e2bcd86a5658dd6f6973ed509a4cdb9826231bfc"></a>GENAVB_CLOCK_GPTP_0_1&#160;</td><td class="fielddoc"><p>gPTP clock interface 0 domain 1 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5ef1c8a12d6be59e079dc5664e2bcd86ac891243f282b5a7ec56719c33bced52d"></a>GENAVB_CLOCK_GPTP_1_0&#160;</td><td class="fielddoc"><p>gPTP clock interface 1 domain 0 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5ef1c8a12d6be59e079dc5664e2bcd86ab52086d512262f3be660841c7c78407a"></a>GENAVB_CLOCK_GPTP_1_1&#160;</td><td class="fielddoc"><p>gPTP clock interface 1 domain 1 </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="gae08eea93114ad20b491fc1a387e50e35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae08eea93114ad20b491fc1a387e50e35">&#9670;&nbsp;</a></span>genavb_clock_gettime64()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int genavb_clock_gettime64 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__clock.html#ga5ef1c8a12d6be59e079dc5664e2bcd86">genavb_clock_id_t</a>&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t *&#160;</td>
          <td class="paramname"><em>ns</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get time in nanoseconds. </p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__generic.html#gga031a0b2111b623fef60d707141a995d5a652003ceb0485f27d4a45e7c29dffe7f" title="Success.">GENAVB_SUCCESS</a> or negative error code. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>clock id. </td></tr>
    <tr><td class="paramname">ns</td><td>pointer to uint64_t variable that will hold the result. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.5-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul class="foot">
    <li class="footer"> &copy; 2017-2020 NXP
    </li>
  </ul>
</div>
</body>
</html>
